﻿<Application
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:pc="http://schemas.microsoft.com/prototyping/2010/controls" xmlns:Microsoft_Expression_Prototyping_WindowsPhone_Mockups="clr-namespace:Microsoft.Expression.Prototyping.WindowsPhone.Mockups;assembly=WindowsPhone.Mockups" mc:Ignorable="d"
	x:Class="ToyundaPhonePrototype.App">
	<Application.Resources>
		<!-- Resources scoped at the Application level should be defined here. -->
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/Microsoft.Expression.Prototyping.SketchControls;component/ScrollViewerStyles.xaml"/>
				<ResourceDictionary Source="/ToyundaPhonePrototype.Screens;component/SketchStyles.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			<Style x:Key="ListBoxItem-SketchStretch" TargetType="ListBoxItem">
				<Setter Property="Padding" Value="3"/>
				<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
				<Setter Property="VerticalContentAlignment" Value="Top"/>
				<Setter Property="Background" Value="Transparent"/>
				<Setter Property="BorderThickness" Value="1"/>
				<Setter Property="TabNavigation" Value="Local"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="ListBoxItem">
							<Grid Background="{TemplateBinding Background}">
								<VisualStateManager.VisualStateGroups>
									<VisualStateGroup x:Name="CommonStates">
										<VisualStateGroup.Transitions>
											<VisualTransition GeneratedDuration="00:00:00.2000000"/>
										</VisualStateGroup.Transitions>
										<VisualState x:Name="Normal"/>
										<VisualState x:Name="MouseOver"/>
										<VisualState x:Name="Disabled">
											<Storyboard>
												<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
													<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
												</DoubleAnimationUsingKeyFrames>
											</Storyboard>
										</VisualState>
									</VisualStateGroup>
									<VisualStateGroup x:Name="SelectionStates">
										<VisualState x:Name="Unselected"/>
										<VisualState x:Name="Selected">
											<Storyboard>
												<ColorAnimation Duration="0" To="{StaticResource AccentColor}" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
											</Storyboard>
										</VisualState>
									</VisualStateGroup>
									<VisualStateGroup x:Name="FocusStates">
										<VisualStateGroup.Transitions>
											<VisualTransition GeneratedDuration="00:00:00.1000000"/>
										</VisualStateGroup.Transitions>
										<VisualState x:Name="Focused"/>
										<VisualState x:Name="Unfocused"/>
									</VisualStateGroup>
								</VisualStateManager.VisualStateGroups>
								<pc:SketchRectangleSL x:Name="Selected1" Opacity="0" BorderBrush="{StaticResource SelectedBackground-Sketch}" Background="{StaticResource SelectedBackground-Sketch}" SegmentLength="8" SegmentOffset="0.12" SegmentVariance="0.1"/>
								<ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
							</Grid>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
				<Setter Property="FontFamily" Value="{StaticResource FontFamily-Sketch}"/>
				<Setter Property="Foreground" Value="{StaticResource BaseForeground-Sketch}"/>
				<Setter Property="FontSize" Value="{StaticResource SizeDouble-Sketch}"/>
				<Setter Property="FontWeight" Value="{StaticResource FontWeight-Sketch}"/>
				<Setter Property="Margin" Value="5,4,0,0"/>
				<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
			</Style>
			<Style x:Key="ListBox-SketchStretch" TargetType="ListBox">
				<Setter Property="Padding" Value="1"/>
				<Setter Property="Foreground" Value="{StaticResource BaseForeground-Sketch}"/>
				<Setter Property="VerticalContentAlignment" Value="Top"/>
				<Setter Property="IsTabStop" Value="False"/>
				<Setter Property="BorderBrush" Value="{StaticResource BaseBorder-Sketch}"/>
				<Setter Property="BorderThickness" Value="0"/>
				<Setter Property="TabNavigation" Value="Once"/>
				<Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItem-SketchStretch}"/>
				<Setter Property="Background" Value="Transparent"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="ListBox">
							<Grid>
								<ScrollViewer x:Name="ScrollViewer"
									Style="{StaticResource ScrollViewer-Sketch}"
									ScrollViewer.HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
									ScrollViewer.VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
									BorderBrush="{TemplateBinding BorderBrush}"
									BorderThickness="{TemplateBinding BorderThickness}"
									Padding="{TemplateBinding Padding}"
									Background="{TemplateBinding Background}"
									Foreground="{TemplateBinding Foreground}">
									<ItemsPresenter />
								</ScrollViewer>
							</Grid>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
				<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
			</Style>
			<Style x:Key="TitleBlockStyle" TargetType="TextBlock">
				<Setter Property="FontFamily" Value="{StaticResource FontFamily-Sketch}"/>
				<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeNormal}"/>
				<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
				<Setter Property="Text" Value="TOYUNDA PHONE"/>
			</Style>
			<Style x:Key="TitlePanelStyle" TargetType="StackPanel">
				<Setter Property="Margin" Value="12,17,0,17"/>
			</Style>

		</ResourceDictionary>
	</Application.Resources>
</Application>
